From: Florian Müllner Date: Thu, 13 Feb 2025 13:11:04 +0000 (+0100) Subject: loginDialog: Show session menu button when in IN_PROGRESS status X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~139^2^2~9 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6b35468e89981a1da35e0c88f4cb32c3540989cf;p=gnome-shell.git loginDialog: Show session menu button when in IN_PROGRESS status Commit c8bb45b added a new IN_PROGRESS status that replaces FAILED while the user is still allowed to retry authentication. We need to account for it when updating the visibility of the session menu button, otherwise the button disappears after entering a wrong password. Fixes: c8bb45b41c ("gdm: Limit verification cancellations to be conform to allowed-failures") Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5784 Part-of: --- diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index fa9161502..6ead9ab0f 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -1035,8 +1035,12 @@ export const LoginDialog = GObject.registerClass({ } _shouldShowSessionMenuButton() { - if (this._authPrompt.verificationStatus !== AuthPrompt.AuthPromptStatus.VERIFYING && - this._authPrompt.verificationStatus !== AuthPrompt.AuthPromptStatus.VERIFICATION_FAILED) + const visibleStatuses = [ + AuthPrompt.AuthPromptStatus.VERIFYING, + AuthPrompt.AuthPromptStatus.VERIFICATION_FAILED, + AuthPrompt.AuthPromptStatus.VERIFICATION_IN_PROGRESS, + ]; + if (!visibleStatuses.includes(this._authPrompt.verificationStatus)) return false; if (this._user && this._user.is_loaded && this._user.is_logged_in())